package com.mrent.service;

import java.util.List;

import com.mrent.entity.CartGoods;

public interface CartGoodsService {
	
	/**
	 * 保存购物车商品.
	 * 
	 * @param cartGoods
	 */
	public void saveCartGoods(CartGoods cartGoods);
	
	/**
	 * 更新购物车对象.
	 * 
	 * @param cartGoods
	 */
	public void updateCartGoods(CartGoods cartGoods);
	
	/**
	 * 删除购物车商品.
	 * 
	 * @param cartGoods
	 */
	public void removeCartGoods(Long cartId);
	
	/**
	 * 根据session id 查找.
	 * 
	 * 
	 * @param sessionId
	 * @return
	 */
	public List<CartGoods> findBySession(String sessionId);
	
	/**
	 * 根据session,goodsNo获取购物车商品对象.
	 * 
	 * @param sessionId
	 * @param goodsNo
	 * @return
	 */
	public CartGoods getBySessionGoodsNo(String sessionId,String goodsNo);

}
